<template>
    <rx-dialog @handOk="handleOk" @cancel="cancel">
        <script-component :value="source.condition" :source="source"></script-component>
    </rx-dialog>
</template>

<script>
import {RxDialog, Util} from "@lowcode/jpaas-common-lib"
import ScriptComponent from "@/views/modules/form/core/TableForrmula/ScriptComponent.vue";

export default {
    name: "FormTableFormulaScript",
    props: ["layerid", "destroy","source"],
    components: {
        ScriptComponent,
        RxDialog,
    },
    methods: {
        handleOk() {
            Util.closeWindow(this, "ok", this.source.condition);
        },
        cancel() {
            Util.closeWindow(this, "cancel");
        }

    }
}
</script>

<style scoped>


</style>